<%@ page language="java"  contentType="text/html; charset=UTF-8" %>

<html>
<body>
<h2>tomcat 1</h2>



springmvc上传文件
<form name="form1" action="/manage/product/upload.do" method="post" enctype="multipart/form-data">
    <input type="file" name="upload_file" />
    <input type="submit" value="springmvc上传文件" />
</form>


富文本图片上传文件
<form name="form2" action="/manage/product/richtext_img_upload.do" method="post" enctype="multipart/form-data">
    <input type="file" name="upload_file" />
    <input type="submit" value="富文本图片上传文件" />
</form>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<button onclick="asd()">asdasd</button>
<script>
    function asd(){
        $.ajax({
            url:"http://www.happymmall.com/manage/user/sleep.do",
            success:function (rep) {
                console.log(rep)
            },
            error:function (msg) {
                console.log(msg)
            }
        });
    }
</script>
</body>
</html>
